package com.lzy.wzy.constant;

import java.util.ArrayList;
import java.util.List;

public class MyConstant {


    public static class WorkOrderStatus {
        public static String RELEASE = "下达";

        public static String InSystem = "在制";

        public static String EXCEPTION = "异常";

        public static String MAJOR_EXCEPTION = "重大异常";

        public static String FINISHED = "完工";

        public static String CASECLOSE = "结案";

        public static String TO_BE_PRODUCED = "待生产";

        public static String WAREHOUSING = "入库";

        public static String IN_TOTAL = "总在制";

        public static String TOTAL_FINISHED = "总完工";

        public static String TOTAL_STORAGE = "总入库";

        public static String ADD_IN_PRODUCTION = "新增在制";

        public static String ADDED_COMPLETION = "新增完工";

        public static String ADD_STORAGE = "新增入库";

        public static String DEL_IN_SYSTEM = "删除在制";

        public static String DEL_COMPLETION = "删除完工";

        public static String TOTAL = "总生产";
    }

    public static class WorkType {
        public static String P = "P";

        public static String B = "B";

        public static String F = "F";

    }

    public static class TemplateStatus {
        public static String PENDING_REVIEW = "待审核";


        public static String IS_ENABLED="已启用";

        public static String DISABLED="禁用";

        public static String PASSED = "已通过";
    }

    public static class ReportStatus {
        public static String PENDING = "待处理";

        public static String PENDING_EXECUTE = "待执行";

        public static String EXECUTE_PLAN = "计划执行";

        public static String TOBE_CONFIRMED = "待确认";

        public static String FINISHED = "完成";
    }

    public static class UserStatus {
        public static String ONLINE = "在线";

        public static String OFFLINE = "离线";
    }

    public static class ApproveStatus {
        public final static String UNDER_REVIEW = "审核中";

        public final static String MODERATED = "等待审核";

        public final static String EXAMINATION_PASSED = "通过";

        public final static String END_OF_REVIEW = "审核完结";

        public final static String REVIEW_REJECTED = "驳回";
    }

    public static class ApproveGroup {

        //写死
        public static final  List<String> groups=new ArrayList<String>(){
            {
                add("2");//计划审批组id
                add("26");//工艺审批组id
                add("17");//质量审批组id
                add("16");//生产审批组id
                add("28");//质检审批组id
            }
        };

        public static String quality = "ROLE_QUALITY_ENGINEER";

        public static String[] craft = {
                "ROLE_PROCESS_ENGINEER",
                "ROLE_CRAFT_DIRECTOR"
        };

        public static final String[] manage={"ROLE_ADMIN","ROLE_OTHER"};

        public static String executorG = "ROLE_PRODUCE";

        public static String confirmG = "ROLE_QUALITY";
    }

    public static class Role {
        public static String ADMIN = "管理员";

        public static String SUPER_ADMINISTRATOR = "超级管理员";

        public static String[] PRODUCT_G = {
                "ROLE_SUPERVISOR", "ROLE_PRODUCE_DIRECTOR"
        };
    }

    public static class WorkOrderOperation {
        public static String ADD = "新增";

        public static String MODIFY = "修改";

        public static String DELETE = "删除";
    }

    public static class ProductOperation {
        public static int LOCK = 1;

        public static int UN_LOCK = 2;
    }

    public static class PO {
        public static String ADD = "add";

        public static String MODIFY = "modify";

        public static String DEL = "del";

        public static String CONNECTION = "connection";

        public static String ERROR = "error";

        public static String OTHER_ERROR = "other_error";
    }

    public static class Re {
        public final static String re = "r1";

        public final static String r2 = "r2";
        public final static String r3 = "r3";
        public final static String r4 = "r4";
        public final static String r5 = "r5";
        public final static String r6 = "r6";
    }

    public static class ProductionOperation{
        public final static String ADD="add";

        public final static String MODIFY="modify";

        public final static String DEL="del";

        public final static String CONNECTION="connection";
    }
}
